package com.right.service;

import com.right.entity.Admin;

public interface AdminService {
      /**
       * 管理员登入
       * @param adminname
       * @param adminpwd
       * @return
       */
	public boolean login(String adminname, String adminpwd);
	
	/**
	 * 通过用户获得ID
	 * @param adminname
	 * @return
	 */
	public Admin getIdByName(String adminname);
	
	/**
	 * 通过ID获取对象
	 * @param adminid
	 * @return
	 */
	public Admin getAdminByid(int adminid);
}
